package org.codeart.composite.example01;

/**
 * 叶子节点不可以包含子节点
 */
public class Leaf extends Component {

    @Override
    public void add(Component node) {
        
    }

    @Override
    public void remove(Component node) {

    }

    @Override
    public Component getChild(int i) {
        return null;
    }

    @Override
    public void operation() {

    }
}
